function fontHandler(): void {
    document.documentElement.style.fontSize=document.documentElement.clientWidth/3.75 + 'px'
}

fontHandler()

window.onresize = fontHandler